package ie.dkit.java3Demulation.objects;

/**
 * @author Sebastian Ruehl
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA 02111-1307 USA
 */
public class Point implements GraphicsObject {

	protected String m_PointName;

	protected double m_X;

	protected double m_Y;

	public Point() {
		m_PointName = "Point";
	}

	/**
	 * @param m_x
	 * @param m_y
	 */
	public Point(double m_x, double m_y) {
		super();
		m_X = m_x;
		m_Y = m_y;
	}

	/**
	 * @return the m_X
	 */
	public double getX() {
		return m_X;
	}

	/**
	 * @param m_x
	 *            the m_X to set
	 */
	public void setX(double x) {
		m_X = x;
	}

	/**
	 * @return the m_Y
	 */
	public double getY() {
		return m_Y;
	}

	/**
	 * @param y
	 *            the m_Y to set
	 */
	public void setY(double y) {
		m_Y = y;
	}

	public void setCoordinate(Point point) {
		m_X = point.m_X;
		m_Y = point.m_Y;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see ie.dkit.java3Demulation.objects.GraphicsObject#getName()
	 */
	public String getName() {
		return m_PointName;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see ie.dkit.java3Demulation.objects.GraphicsObject#setName(java.lang.String)
	 */
	public void setName(String name) {
		m_PointName = name;
	}
}
